package in.abacritt.android.xclock;

public class OpenWeatherConfig {
	/** Base API URL */
	public static final String API_BASE_URL = "http://openweathermap.org/data/2.5";
	/** Current weather API URL */
	public static final String API_WEATHER_URL = API_BASE_URL + "/weather?";
	/** Forecasts API URL */
	public static final String API_FORECAST_URL = API_BASE_URL
			+ "/forecast/daily?cnt=4&id=";
	/** API key */
	public static final String API_KEY = "0d0ae5ab1745a3cff5fd761f1128fd67";

	public static final char degreeSign = (char) 0x00B0;

	public static String getWeatherUrl(LocationInfoWrapper location) {
		// return API_WEATHER_URL + "lat=" + location.getLatitude() + "&lon="
		// + location.getLongitude() + "&units=metric" + "&mode=xml";
		return API_WEATHER_URL + "q=" + location.locationAddress.getLocality()
				+ "&units=metric" + "&mode=xml";
	}
}
